Uniform references

ABSTRACT

Embodiments of the present invention provide a novel and non-obvious method, system and computer program product for uniform references to artifacts in a software configuration management tool. In one embodiment, a data processing system configured to resolve artifact references can include a software configuration management tool and uniform reference resolution logic coupled to the tool. In this regard, the uniform reference logic can be programmed to resolve a path name to a referenced artifact by processing a uniform reference specifying the referenced artifact.

FIELD OF THE INVENTION

This patent application claims the benefit under 35 U.S.C. §119(e) of presently pending U.S. Provisional Patent Application 60/574,954, entitled UNIFORM REFERENCES, filed on May 27, 2004, the entire teachings of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION Description of the Related Art

When building computer software, change happens often. Due to the oft-occurring changes in the software development process, software developers have gravitated towards the use of software configuration management tools. Software configuration management refers to the set of activities that are designed to control change by identifying the work product in a software development cycle which is most likely to change, establishing relationships among the identified work product, defining mechanisms for managing different versions of the identified work product, controlling changes that are imposed upon the work product, and auditing and reporting the changes.

A software configuration management system can provide its users both with the ability to record every detail of components used in a software build, and also with the ability to completely recreate the build environment. This requires the software configuration management system to generate a completely accurate software bill-of-materials for a software build. Additionally, the software configuration management system must be able to free the user from the need to manually maintain and declare most build dependencies in order to improve build accuracy and development productivity.

Software configuration management tools often suffer from a lack of a uniform mechanism for references to objects and resources that span storage boundaries. Most notably, data backup and restore operations, integration, and object and file versioning remain vulnerable to disparate references. In this regard, restoring data to a different location is not possible due to hard coded paths in references to data. Integrations are brittle for the same reason: if files or databases move, many integration links may become broken. Finally, since versioning applies to items beyond simply source code, references must account for items that might be referenced from a view other than the one in which the reference was created.

In order to ensure that persistent references accurately identify the appropriate item in the presence of backup/restore, integration and versioning, it is important to address the following issues:

-   -   A reference must be able to identify any persistent logical         item;     -   A reference to an item must not become broken if the component         housing that item is moved or restored to a different location;     -   A reference to an item must not break if the item is put under         version control; and,     -   A reference must be able to locate the version of the item in a         specified view, not just in the view in which the reference was         created.

Most references will point to whatever version of an item that appears in a current view, but some references will refer to a particular version, for example, an activity change set can reference specific versions of an item. Some references will reference whatever item currently has a specified name, while other references point to the item in a view that corresponds to a particular artifact, irrespective of the name of the artifact. If a versioned database is to be incrementally loaded on demand, the reference to a database object must identify the file housing that object. Likewise, an item could be replicated, so a reference must be able to locate the local replica of the item, not just the replica to which the reference was originally created.

BRIEF SUMMARY OF THE INVENTION

Embodiments of the present invention address deficiencies of the art in respect to referencing artifacts in a software configuration management tool and provide a novel and non-obvious method, system and computer program product for uniform references to artifacts in a software configuration management tool. In one embodiment, a data processing system configured to resolve artifact references can include a software configuration management tool and uniform reference resolution logic coupled to the tool. In this regard, the uniform reference logic can be programmed to resolve a path name to a referenced artifact by processing a uniform reference specifying the referenced artifact.

The uniform reference resolution logic can include programming to selectably resolve the path name according to a reference kind specified within the uniform reference. Specifically, the reference kind can be a reference type selected from the group consisting of a component reference, a view reference, an element reference, a version reference and a default object reference. The uniform reference can include at least an original path to the artifact and a reference kind for the uniform reference. The uniform reference further can include a display name including a descriptive name for the artifact. The uniform reference yet further can include a component identifier and component path, an element and a view path, and a format and an object path.

A method for resolving artifact references in a software configuration management tool can include reading a uniform reference to an artifact and parsing the uniform reference to identify the artifact and a reference kind. The method further can include selecting a resolution routine to reduce the uniform reference to a path name to the artifact and executing the resolution routine to produce the path name. In one aspect of the invention, the reference kind can be a reference type selected from the group consisting of a component reference, a view reference, an element reference, a version reference and a default object reference. Moreover, the selecting step can include selecting a resolution routine selected from the group consisting of a component resolution routine, a view resolution routine, an element resolution routine, a version resolution routine and a default object resolution routine.

Additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The aspects of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the appended claims. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The accompanying drawings, which are incorporated in and constitute part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention. The embodiments illustrated herein are presently preferred, it being understood, however, that the invention is not limited to the precise arrangements and instrumentalities shown, wherein:

FIG. 1 is a schematic illustration of a data processing system configured to resolve uniform references in a software configuration management tool;

FIG. 2 is a block diagram illustrating a uniform reference; and,

FIG. 3 is a flow chart illustrating a process for resolving uniform references in the system of FIG. 1.

DETAILED DESCRIPTION OF THE INVENTION

Embodiments of the present invention provide a method, system and computer program product for uniform references in a software configuration management tool. In accordance with an embodiment of the present invention, a uniform reference can be assembled for an artifact in the software configuration management tool. The uniform reference can include a reference to the location of the referenced artifact and an indication of a reference type. The reference type can include a component relative reference, an element reference, a view reference, a version reference, and a default file-path reference. Utilizing the data incorporated in the uniform reference, the software component management tool can construct a pathname to the referenced artifact irrespective of the view in which the artifact is to be recreated, and whether the artifact has been moved.

In further illustration, FIG. 1 is a schematic illustration of a software configuration management system configured to resolve uniform references. The data processing system can include a software configuration management tool 130 such as the IBM Rational® ClearCase® software configuration management tool. Optionally, the software configuration management tool 130 can be configured for coupling to one or more development clients 110 over a computer communications network 120. The software configuration management tool 130 can include a versioned object base 140.

The versioned object base 140 can be a permanent, secure data repository. Specifically, the versioned object base 140 can contain artifacts 150 shared by all users. The artifacts 150 can be produced from the processing of one or more contained objects 160 which can include current and historical versions of source files, resources, documents, compilation and development tools, along with derived objects built from the sources by compilers, linkers, and so on. To that end, a uniform reference 170 can be constructed for each of the artifacts 150.

Each uniform reference 170 can specify a reference to the location of the referenced artifact and an indication of a reference type. Utilizing the uniform reference 170, uniform reference resolution logic 300 can resolve a path name to the referenced one of the artifacts 150 irrespective of the view in which the referenced one of the artifacts 150 is to be recreated, and whether the referenced one of the artifacts 150 has been moved within persistent storage.

In more particular illustration of the structure of the uniform reference 200 of FIG. 1, FIG. 2 is a block diagram illustrating a uniform reference 200. The uniform reference 200 can be a multi-component string which can include a reference kind 210. The reference kind 210 identifies the default way in which a physical pathname is constructed from the information stored in the uniform reference 200. Notably, the reference kind 210 can include a component reference, a file reference, and an object reference. A component reference is a reference to a component, a file reference is a reference to a file, and an object reference is a reference to an object that resides in a file.

The uniform reference 200 further can include an original path 220, a component identifier 230 and component path 240, a view path 250 and element 260, and a format 270 and object 280. The original path 220 is the string specified by the client to create the reference. With a file-path reference, the original-path field 220 is used, and the reference identifies whatever item is located at that path. With a component-relative reference, the component 230 and component-path 240 are used, and the uniform reference 200 identifies whatever item is located at that location relative to the component root directory. Specifically, the component 230 can specify a globally unique identifier for the component that contains the specified object. The component-path 240, in turn, identifies a location relative to the root directory of the component specified in the component field.

The uniform reference 200 can utilize the element value 260, the view path 250 to identify whatever version of that artifact is currently visible in a specified view. The view path 250 identifies a location relative to the root directory of the view that can be stored for references to versioned files. In this regard, the view path 250 is used to resolve versioned references in disconnected views. An element value 260, by comparison, is a triple containing the universal unique identifier (UUID) of a versioning repository, the UUID of a versioned object, and the UUID of a version.

The format field 270 can identify the format of the referenced artifact. If the uniform reference contains an object field 280, the uniform reference 200 also can contain a format field 270. The format field 270 can be used to determine whether the reference can be handled internally, or whether an external process will be required to handle the uniform reference 200. The object field 280, in turn, can identify a path to a specific object. If the path is absolute, the path is relative to the root object of a particular artifact. An absolute object path should begin with a segment that defines the type of path being used, in order to allow multiple types of object paths in a single artifact.

Conversely, if the path is relative, the path is relative to the object that contains the uniform reference 200. Optionally, an object path may traverse a relationship that itself is another uniform reference 200. In this case, the object identified by the uniform reference can be obtained, and processing of the remaining segments of the object path continues from that object.

Finally, the uniform reference 200 can include a display name field 290. The display name field 290 can provide a descriptive name for the reference. The display name field 290 can have no effect on locating the referenced artifact, but the display name field 290 can be useful as a title for the reference in a graphical user interface, and for a more intelligible error message when the artifact identified by the uniform reference 200 cannot be located, or the service that understands the specified format is not available.

The uniform reference 200 can be resolved to a path name for a specified artifact through the operation of uniform reference resolution logic 300. In more particular illustration, FIG. 3 is a flow chart illustrating a process for resolving uniform references in the system of FIG. 1. Beginning first in block 310, a uniform reference can be read in for processing. The uniform reference can be a string that can be used to reference an arbitrary item both logical and physical on the network. Since every object must reside in some artifact, every uniform reference identifies an artifact, and then optionally identifies some object that resides in that artifact.

In block 320, a reference kind can be retrieved for the uniform reference. In decision block 330, if the reference kind is a component reference, in block 340 a component resolve routine can be executed. Specifically, the component resolve routine is the default resolution mechanism for a component-relative reference. The component resolve routine further can resolve an element reference if the referenced file was in a component when the reference was created. A component location registry must be available on the host of the client that issues a component resolve request. If the component is under version control, a view root must be specified in the component resolve request, since the component location will be relative to the root of the view.

In decision block 350, if the reference is a view reference, in block 360 a view resolution routine can provide an alternative resolution mechanism for an element reference when the versioning server is not available such as when handling a disconnected view. A view name must be specified to resolve a reference relative to the root of the view. In decision block 370, if the reference is an element reference, in block 380, an element resolution routine can resolve the element reference. In this circumstance, the versioning server is to be available on the host of the client that issues an element resolve request.

Finally, in decision block 390, if the reference is a version reference, in block 400, a version resolution routine can return a version-extended pathname that identifies the version that was selected when the reference was originally created. In this case, the versioning server must be available on the host of the client that issues a version resolve request. Otherwise, in block 410, original resolution routine can behave as the default resolution mechanism for a file-path reference. The original resolution routine can be applied to any uniform reference, and can return the original path used to create the uniform reference.

Uniform references provide a method for persistently storing object references and recreating them at a later time. Uniform references work equally well for file system objects and database objects; allow target objects to be relocated without breaking; can work with or without a location service; will resolve into multiple forms as requested by the client; allow the client to specify desired behavior where the reference is tied to a location or object at reference creation time; and, can be resolved within the context of file system views created by a software configuration management system.

Embodiments of the invention can take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment containing both hardware and software elements. In a preferred embodiment, the invention is implemented in software, which includes but is not limited to firmware, resident software, microcode, and the like. Furthermore, the invention can take the form of a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system.

For the purposes of this description, a computer-usable or computer readable medium can be any apparatus that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. Examples of a computer-readable medium include a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk. Current examples of optical disks include compact disk-read only memory (CD-ROM), compact disk-read/write (CD-R/W) and DVD.

A data processing system suitable for storing and/or executing program code will include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code in order to reduce the number of times code must be retrieved from bulk storage during execution. Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) can be coupled to the system either directly or through intervening I/O controllers. Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters. 

1. A data processing system configured to resolve artifact references, the system comprising: a software configuration management tool; and, uniform reference resolution logic coupled to said tool and programmed to resolve a path name to a referenced artifact by processing a uniform reference specifying said referenced artifact.
 2. The data processing system of claim 1, wherein said uniform reference resolution logic comprises programming to selectably resolve said path name according to a reference kind specified within said uniform reference.
 3. The data processing system of claim 2, wherein said reference kind is reference type selected from the group consisting of a component reference, a view reference, an element reference, a version reference and a default object reference.
 4. The data processing system of claim 1, wherein said uniform reference comprises at least an original path to said artifact and a reference kind for said uniform reference.
 5. The data processing system of claim 4, wherein said uniform reference further comprises a display name comprising a descriptive name for said artifact.
 6. The data processing system of claim 4, wherein said uniform reference further comprises a component identifier and component path.
 7. The data processing system of claim 4, wherein said uniform reference further comprises an element and a view path.
 8. The data processing system of claim 4, wherein said uniform reference further comprises a format and an object path. 9-11. (canceled)
 12. A computer program product comprising a computer usable medium including computer usable program code for resolving artifact references in a software configuration management tool, said computer program product including; computer usable program code for reading a uniform reference to an artifact; computer usable program code for parsing said uniform reference to identify said artifact and a reference kind; computer usable program code for selecting a resolution routine to reduce said uniform reference to a path name to said artifact; and, computer usable program code for executing said resolution routine to produce said path name.
 13. The computer program product of claim 12, wherein said reference kind is a reference type selected from the group consisting of a component reference, a view reference, an element reference, a version reference and a default object reference.
 14. The computer program product of claim 12, wherein said computer usable program code for selecting a resolution routine to reduce said uniform reference to a path name to said artifact comprises computer usable program code for selecting a resolution routine selected from the group consisting of a component resolution routine, a view resolution routine, an element resolution routine, a version resolution routine and a default object resolution routine. 